package com.supermap.business.product;

import com.alibaba.dubbo.config.annotation.Reference;
import com.supermap.dataservice.util.JSONUtil;
import com.supermap.dubbo.api.product.ExpertAdvService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author aqua
 * @description
 * @date 2018年11月06 下午 5:33
 * @email 1301584033@qq.com
 */

@Controller
@RequestMapping("/expertadv")
public class ExpertAdvController {

    @Reference(timeout = 5000)
    private ExpertAdvService expertAdvService;


    @GetMapping("/getExpert")
    @ResponseBody
    public JSONUtil getExpert(Integer expertId){
        return  expertAdvService.getExpert(expertId);

    }

    @GetMapping("/getListAdvComment")
    @ResponseBody
    public JSONUtil getListAdvComment(Integer expertId){
        return  expertAdvService.getListAdvComment(expertId);

    }


}
